package com.qidianit.mes.pojo.pro;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qidianit.mes.pojo.Customer;
import com.qidianit.mes.pojo.Material;
import com.qidianit.mes.pojo.SysDictData;
import com.qidianit.mes.pojo.Unit;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;


@Data
@TableName("production_order")
public class ProductionOrder {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String productionOrderCode;
    private String productionOrderName;
    private Integer productionOrderSource;
    private Integer productionOrderType;
    private String orderCode;
    private String materialCode;
    private Integer productionOrderQuantity;
    private String customerCode;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime requestDate;
    private Integer status;
    private String qrCodeUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;
    private Long creatorId;
    private Long updatorId;
    private Integer deleteFlag;

    private SysDictData statusDictData;
    private Customer customer;
    private Material material;

    private SysDictData productionOrderTypeDictData;
}
